package com.bosssoft.boss_exam_db.service.busines;

import com.bosssoft.boss_exam_db.entity.Company;
import com.bosssoft.boss_exam_db.service.base.BaseService;
import com.github.pagehelper.PageInfo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CompanyService extends BaseService<Company> {

    PageInfo<Company> queryByCondition(String companyName, String groupName, Integer page, Integer limit, String sort, String order);

    int deleteCascade(Company company) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;

    List<Company> queryAllCompanyByGroupId(String groupId);

}

